package com.wsl;

import com.wsl.Bean.BeanWayService;
import com.wsl.Bean.JSR250WayService;
import com.wsl.config.PrePostConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author:WangShuliang
 * @Description:
 * @Date:Created in 14:49 2017/11/24
 * @Modified by:
 */
public class Main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(PrePostConfig.class);
        BeanWayService beanWayService = context.getBean(BeanWayService.class);
        JSR250WayService jsr250WayService= context.getBean(JSR250WayService.class);
        context.close();
    }
}